package com.aizuda.boot.modules.business.feishu.domain;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.HashMap;
import java.util.Map;

/**
 * @Author sangyirong
 * @ClassName BotValues
 * @Version 1.0
 * @Date 2025/7/11 20:33
 */
@Data
@Schema(description = "飞书机器人消息值")
public class BotValues {

    @Schema(description = "openId")
    private String openId;

    @Schema(description = "租户标识")
    private String tenantKey;

    @Schema(description = "业务类型")
    private String businessType;

    @Schema(description = "动态参数")
    private Map<String,Object> dynamicParams;



    public BotValues() {
        this.dynamicParams = new HashMap<>();
    }

    /**
     * 添加动态参数
     */
    public BotValues addParam(String key, Object value) {
        this.dynamicParams.put(key, value);
        return this;
    }

    /**
     * 获取动态参数
     */
    public Object getParam(String key) {
        return this.dynamicParams.get(key);
    }

}
